using NUnit.Framework;
using Rhino.Mocks;

namespace NUnit.Behave.Specs.As_A_Conjunction_Specs
{
    [TestFixture]
    [Category("As_A_Conjunction_Specs")]
    public class When_creating_conjunction
    {
        [Test]
        public void Should_require_a_message()
        {
            string message = "admin user";

            As_A_Conjunction as_A_Conjunction = new As_A_Conjunction(message);
            Assert.AreEqual(message, as_A_Conjunction.Message);
        }
    }

    [TestFixture]
    [Category("As_A_Conjunction_Specs")]
    public class When_invoking_the_I_want_menthod
    {
        [Test]
        public void Should_return_an_I_want_conjunction_type()
        {
            As_A_Conjunction as_A_Conjunction = new As_A_Conjunction("admin user");
            Assert.IsInstanceOfType(typeof (I_Want_Conjunction), as_A_Conjunction.I_want("something I want"));
        }
    }
}